<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- start: Meta -->
    <meta charset="utf-8">
    <title>祥安消防系统</title>
    <meta name="description" content="Bootstrap Metro Dashboard">
    <meta name="author" content="Dennis Ji">
    <meta name="keyword"
          content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
    <!-- end: Meta -->

    <!-- start: Mobile Specific -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- end: Mobile Specific -->

    <!-- start: CSS -->
    <link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link id="base-style" href="css/style.css" rel="stylesheet">
    <link id="base-style-responsive" href="css/style-responsive.css"
          rel="stylesheet">
    <link
            href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext'
            rel='stylesheet' type='text/css'>
    <!-- end: CSS -->


    <!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <link id="ie-style" href="css/ie.css" rel="stylesheet">
    <![endif]-->

    <!--[if IE 9]>
    <link id="ie9style" href="css/ie9.css" rel="stylesheet">
    <![endif]-->

    <!-- start: Favicon -->
    <link rel="shortcut icon" href="img/favicon.ico">
    <!-- end: Favicon -->




</head>
<body>

<!-- start: Header -->
<%@include file="header.jsp"%>
<div class="container-fluid-full" style="min-height: 1200px;">
    <div class="row-fluid">

        <!-- start: Main Menu -->
        <%@include file="mainmenu.jsp"%>
        <!-- start: Content -->
        <div id="content" class="span10">
            <ul class="breadcrumb">
                <li><i class="icon-home"></i> <a href="index.html">主页</a> <i
                        class="icon-angle-right"></i></li>
                <li><a href="#">
                    新建材料核准单</a></li>
            </ul>


            <div class="row-fluid sortable" >
                <div class="box span12">
                    <div class="box-header" data-original-title>
                        <h2>
                            <i class="halflings-icon white edit"></i><span class="break"></span>新建材料核准单

                        </h2>
                    </div>

                    <div class="box-content">
                        <form class="form-horizontal" method="post"  enctype="multipart/form-data" action="${pageContext.request.contextPath}/Ques_printQuestioncgHz?company=<s:property value="#company"/>">
                            <fieldset>

                                <div class="control-group">
                                    <label class="control-label"   style="text-align: left">*单位名称：</label>
                                    <div id = "company" class="controls">
                                        <label><s:property value="#company"/></label>
                                        <input type="hidden" value="<s:property value="#company"/>" name="taskGz.companyName">
                                        <%--<select id="selectError6" data-rel="chosen" name="taskTell.companyName">--%>
                                            <%--<s:iterator id="jc" value="#companyList" var="jc">--%>
                                                <%--<option value="<s:property value="#jc.dict_item_name"/>"--%>
                                                        <%--<s:if test="#jc.dict_item_name == #taskTell.companyName">selected</s:if>>--%>
                                                    <%--<s:property value="#jc.dict_item_name"/></option>--%>
                                            <%--</s:iterator>--%>
                                        <%--</select>--%>
                                    </div>
                                </div>

                                <div class="control-group">
                                    <label class="control-label"  style="text-align: left">*项目名称：</label>
                                    <div class="controls">
                                        <input class="input-xlarge focused" value="<s:property value="#taskGz.itemName"/>"
                                               name="taskGz.itemName" id="itemName" type="text" placeholder="请输入">
                                    </div>
                                </div>

                                <div class="control-group">
                                    <label class="control-label"  style="text-align: left">*内容：</label>
                                    <div class="controls">
                                        <input class="input-xlarge focused" value="<s:property value="#taskGz.content"/>"
                                               name="taskGz.content" id="123" type="text" placeholder="请输入">
                                    </div>
                                </div>



                                <div class="box-content">
                                    <table
                                            class="table table-striped table-bordered bootstrap-datatable ">
                                        <thead>
                                        <tr>
                                            <th>问题名称</th>
                                            <th>维修方法、人数及时间</th>
                                            <th>材料需求判定及名称</th>
                                            <th>厂家</th>
                                            <th>数量</th>
                                            <th>型径</th>
                                            <th>辅材名称及型径数量</th>
                                            <th>工具型号</th>
                                            <th>材料单价</th>
                                            <th>辅材报价</th>
                                            <th>材料成本</th>
                                            <th>辅材成本</th>
                                            <th>人工报价</th>
                                            <th>总报价</th>
                                            <th>位置</th>
                                        </tr>
                                        </thead>
                                        <tbody>


                                        <s:iterator id="jc" value="#questionList1" var="jc" status="st">

                                            <tr>

                                                <td width="20%"><input type="checkbox" value="1" name="questionList1[${st.index}].isSelected">
                                                    <%--<s:property value="#jc.isSelected==1?'checked':''"/>>--%>
                                                    <input type="hidden" value="<s:property value="#jc.id"/>" name="questionList1[${st.index}].id">
                                                    <input type="hidden" value="<s:property value="#jc.companyName"/>" name="questionList1[${st.index}].companyName">
                                                    <input type="hidden" value="<s:property value="#jc.questionName"/>" name="questionList1[${st.index}].questionName">
                                                    <input type="hidden" value="<s:property value="#jc.type"/>" name="questionList1[${st.index}].type">
                                                    <input type="hidden" value="<s:property value="#jc.insertTime"/>" name="questionList1[${st.index}].insertTime">
                                                    <input type="hidden" value="<s:property value="#jc.isfinish"/>" name="questionList1[${st.index}].isfinish">
                                                    <input type="hidden" value="<s:property value="#jc.details"/>" name="questionList1[${st.index}].details">
                                                    <input type="hidden" value="<s:property value="#jc.dutyPeople"/>" name="questionList1[${st.index}].dutyPeople">
                                                    <input type="hidden" value="<s:property value="#jc.mustDo"/>" name="questionList1[${st.index}].mustDo">
                                                    <input type="hidden" value="<s:property value="#jc.wbclyy"/>" name="questionList1[${st.index}].wbclyy">
                                                    <input type="hidden" value="<s:property value="#jc.cj"/>" name="questionList1[${st.index}].cj">
                                                    <input type="hidden" value="<s:property value="#jc.gf"/>" name="questionList1[${st.index}].gf">
                                                    <input type="hidden" value="<s:property value="#jc.hzr"/>" name="questionList1[${st.index}].hzr">
                                                    <input type="hidden" value="<s:property value="#jc.hzsj"/>" name="questionList1[${st.index}].hzsj">
                                                    <input type="hidden" value="<s:property value="#jc.lx"/>" name="questionList1[${st.index}].lx">
                                                    <input type="hidden" value="<s:property value="#jc.qz"/>" name="questionList1[${st.index}].qz">
                                                    <input type="hidden" value="<s:property value="#jc.sl"/>" name="questionList1[${st.index}].sl">
                                                    <input type="hidden" value="<s:property value="#jc.sxcl"/>" name="questionList1[${st.index}].sxcl">
                                                    <input type="hidden" value="<s:property value="#jc.xj"/>" name="questionList1[${st.index}].xj">
                                                    <input type="hidden" value="<s:property value="#jc.cldj"/>" name="questionList1[${st.index}].cldj">
                                                    <input type="hidden" value="<s:property value="#jc.fldj"/>" name="questionList1[${st.index}].fldj">
                                                    <input type="hidden" value="<s:property value="#jc.zj"/>" name="questionList1[${st.index}].zj">
                                                    <input type="hidden" value="<s:property value="#jc.ztjzrbgjl"/>" name="questionList1[${st.index}].ztjzrbgjl">
                                                    <input type="hidden" value="<s:property value="#jc.flcb"/>" name="questionList1[${st.index}].flcb">
                                                    <input type="hidden" value="<s:property value="#jc.wxfa"/>" name="questionList1[${st.index}].wxfa">
                                                    <input type="hidden" value="<s:property value="#jc.fcmcxjsl"/>" name="questionList1[${st.index}].fcmcxjsl">
                                                    <input type="hidden" value="<s:property value="#jc.gjxh"/>" name="questionList1[${st.index}].gjxh">
                                                    <input type="hidden" value="<s:property value="#jc.rgbj"/>" name="questionList1[${st.index}].rgbj">
                                                    <input type="hidden" value="<s:property value="#jc.needcl"/>" name="questionList1[${st.index}].needcl">
                                                        ${st.index+1}、<s:property value="#jc.questionName"/></td>
                                                <td ><s:property value="#jc.wxfa"/></td>
                                                <td  width="5%"><s:property value="#jc.sxcl"/></td>
                                                <td ><s:property value="#jc.cj"/></td>
                                                <td><s:property value="#jc.sl"/></td>
                                                <td ><s:property value="#jc.xj"/></td>
                                                <td ><s:property value="#jc.fcmcxjsl"/></td>
                                                <td><s:property value="#jc.gjxh"/></td>
                                                <td><s:property value="#jc.cldj"/></td>
                                                <td><s:property value="#jc.fldj"/></td>
                                                <td><s:property value="#jc.clcb"/></td>
                                                <td><s:property value="#jc.flcb"/></td>
                                                <td><s:property value="#jc.rgbj"/></td>
                                                <td><s:property value="#jc.zj"/></td>
                                                <td><s:property value="#jc.details"/></td>



                                            </tr>


                                        </s:iterator>

                                        </tbody>
                                    </table>
                                </div>


                                <div class="control-group">
                                    <label class="control-label"  style="text-align: left">*其他内容：</label>
                                    <div class="controls">
                                        <textarea style="width: 800px;height: 100px;" name="taskGz.otherContent"><s:property value="#taskGz.otherContent"/></textarea>
                                    </div>
                                </div>


                                <div class="control-group" >
                                    <label class="control-label"style="text-align: left">*纸质记录上传/下载</label>
                                    <div class="control-group">
                                        <input type="file" id = "chooseBox" name="file">
                                        <a href="${pageContext.request.contextPath}/download_downloadFile?fileName=<s:property
                                        value="#taskGz.updown"/>"><s:property value="#taskGz.updown"/></a>
                                        <input type="hidden" name="taskGz.updown" value="<s:property value="#taskGz.updown"/>">
                                    </div>

                                </div>


                                <div class="form-actions">
                                    <button class="btn" onclick="checkForm()">打印</button>
                                </div>
                            </fieldset>
                        </form>

                    </div>
                </div>
                <!--/span-->

            </div>

        </div>
        <!--/.fluid-container-->

        <!-- end: Content -->
    </div>
    <!--/#content.span10-->
</div>
<!--/fluid-row-->

<%@include file="footer.jsp"%>

<!-- start: JavaScript-->

<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-migrate-1.0.0.min.js"></script>

<script src="js/jquery-ui-1.10.0.custom.min.js"></script>

<script src="js/jquery.ui.touch-punch.js"></script>

<script src="js/modernizr.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.cookie.js"></script>

<script src='js/fullcalendar.min.js'></script>

<script src='js/jquery.dataTables.min.js'></script>

<script src="js/excanvas.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.stack.js"></script>
<script src="js/jquery.flot.resize.min.js"></script>

<script src="js/jquery.chosen.min.js"></script>

<script src="js/jquery.uniform.min.js"></script>

<script src="js/jquery.cleditor.min.js"></script>

<script src="js/jquery.noty.js"></script>

<script src="js/jquery.elfinder.min.js"></script>

<script src="js/jquery.raty.min.js"></script>

<script src="js/jquery.iphone.toggle.js"></script>

<script src="js/jquery.uploadify-3.1.min.js"></script>

<script src="js/jquery.gritter.min.js"></script>

<script src="js/jquery.imagesloaded.js"></script>

<script src="js/jquery.masonry.min.js"></script>

<script src="js/jquery.knob.modified.js"></script>

<script src="js/jquery.sparkline.min.js"></script>

<script src="js/counter.js"></script>

<script src="js/retina.js"></script>

<script src="js/custom.js"></script>
<!-- end: JavaScript-->

</body>
</html>